﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace TestByWire.Test
{
	[TestClass]
	public class ThenWithTargetTest
	{
		[TestMethod]
		public void TargetFulfills_MustEvaluateProperty()
		{
			ThenWithTarget<TargetWithProperty>.Target = new TargetWithProperty();

			var then = new ThenWithTarget<TargetWithProperty>();

			then.TargetFulfills(t => t.Property == TargetWithProperty.BoolVar.Yes);
		}
	}

	internal class TargetWithProperty
	{
		public enum BoolVar
		{
			No,
			Yes
		}

		public TargetWithProperty()
		{
			Property = BoolVar.Yes;
		}

		public BoolVar Property { get; private set; }
	}
}
